// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

import MintUI from 'mint-ui'
//import { Toast,Swipe, SwipeItem,Loadmore  } from 'mint-ui'
import 'mint-ui/lib/style.css'

import App from './App'
import router from './router'
import './assets/css/common.css'
import './assets/css/layout.css'

//import examplecomponent from './modules/example/components/exampleComponent'
import store from './vuex/index'

Vue.config.productionTip = false
Vue.use(MintUI)
/* Vue.component(Toast.name, Toast)
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Loadmore.name, Loadmore); */

router.beforeEach(function(to,from,next){
    document.title = to.meta.title;
    next();
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App},
  template: '<app/>'
})
